home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / Rings.swf / scripts / __Packages / mx / transitions / Tween.as < prev   
Text File  |  2011-01-13  |  17KB  |  503 lines

  1. var ┬º\x01┬º = 264;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 264)
  5.    {
  6.       set("\x01",eval("\x01") + 289);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else
  10.    {
  11.       if(eval("\x01") == 765)
  12.       {
  13.          set("\x01",eval("\x01") - 763);
  14.          break;
  15.       }
  16.       if(eval("\x01") == 458)
  17.       {
  18.          set("\x01",eval("\x01") - 307);
  19.          ┬º┬ºpush(┬º┬ºpop() / ┬º┬ºpop());
  20.          break;
  21.       }
  22.       if(eval("\x01") == 553)
  23.       {
  24.          set("\x01",eval("\x01") - 455);
  25.          if(┬º┬ºpop())
  26.          {
  27.             set("\x01",eval("\x01") + 80);
  28.          }
  29.       }
  30.       else
  31.       {
  32.          if(eval("\x01") == 217)
  33.          {
  34.             set("\x01",eval("\x01") + 524);
  35.             if(!_global.mx)
  36.             {
  37.                _global.mx = new Object();
  38.             }
  39.             ┬º┬ºpop();
  40.             if(!_global.mx.transitions)
  41.             {
  42.                _global.mx.transitions = new Object();
  43.             }
  44.             ┬º┬ºpop();
  45.             if(!_global.mx.transitions.Tween)
  46.             {
  47.                var _loc2_ = mx.transitions.Tween = function(obj, prop, func, begin, finish, duration, useSeconds)
  48.                {
  49.                   mx.transitions.OnEnterFrameBeacon.init();
  50.                   if(!arguments.length)
  51.                   {
  52.                      return undefined;
  53.                   }
  54.                   this.obj = obj;
  55.                   this.prop = prop;
  56.                   this.begin = begin;
  57.                   this.__set__position(begin);
  58.                   this.__set__duration(duration);
  59.                   this.useSeconds = useSeconds;
  60.                   if(func)
  61.                   {
  62.                      this.func = func;
  63.                   }
  64.                   this.__set__finish(finish);
  65.                   this._listeners = [];
  66.                   this.addListener(this);
  67.                   this.start();
  68.                }.prototype;
  69.                _loc2_.__set__time = function(t)
  70.                {
  71.                   this.prevTime = this._time;
  72.                   if(t > this.__get__duration())
  73.                   {
  74.                      if(this.looping)
  75.                      {
  76.                         this.rewind(t - this._duration);
  77.                         this.update();
  78.                         this.broadcastMessage("onMotionLooped",this);
  79.                      }
  80.                      else
  81.                      {
  82.                         if(this.useSeconds)
  83.                         {
  84.                            this._time = this._duration;
  85.                            this.update();
  86.                         }
  87.                         this.stop();
  88.                         this.broadcastMessage("onMotionFinished",this);
  89.                      }
  90.                   }
  91.                   else if(t < 0)
  92.                   {
  93.                      this.rewind();
  94.                      this.update();
  95.                   }
  96.                   else
  97.                   {
  98.                      this._time = t;
  99.                      this.update();
  100.                   }
  101.                   return this.__get__time();
  102.                };
  103.                _loc2_.__get__time = function()
  104.                {
  105.                   return this._time;
  106.                };
  107.                _loc2_.__set__duration = function(d)
  108.                {
  109.                   this._duration = !(d == null || d <= 0) ? d : _global.Infinity;
  110.                   return this.__get__duration();
  111.                };
  112.                _loc2_.__get__duration = function()
  113.                {
  114.                   return this._duration;
  115.                };
  116.                _loc2_.__set__FPS = function(fps)
  117.                {
  118.                   var _loc2_ = this.isPlaying;
  119.                   this.stopEnterFrame();
  120.                   this._fps = fps;
  121.                   if(_loc2_)
  122.                   {
  123.                      this.startEnterFrame();
  124.                   }
  125.                   return this.__get__FPS();
  126.                };
  127.                _loc2_.__get__FPS = function()
  128.                {
  129.                   return this._fps;
  130.                };
  131.                _loc2_.__set__position = function(p)
  132.                {
  133.                   this.setPosition(p);
  134.                   return this.__get__position();
  135.                };
  136.                _loc2_.setPosition = function(p)
  137.                {
  138.                   this.prevPos = this._pos;
  139.                   this.obj[this.prop] = this._pos = p;
  140.                   this.broadcastMessage("onMotionChanged",this,this._pos);
  141.                   updateAfterEvent();
  142.                };
  143.                _loc2_.__get__position = function()
  144.                {
  145.                   return this.getPosition();
  146.                };
  147.                _loc2_.getPosition = function(t)
  148.                {
  149.                   if(t == undefined)
  150.                   {
  151.                      t = this._time;
  152.                   }
  153.                   return this.func(t,this.begin,this.change,this._duration);
  154.                };
  155.                _loc2_.__set__finish = function(f)
  156.                {
  157.                   this.change = f - this.begin;
  158.                   return this.__get__finish();
  159.                };
  160.                _loc2_.__get__finish = function()
  161.                {
  162.                   return this.begin + this.change;
  163.                };
  164.                _loc2_.continueTo = function(finish, duration)
  165.                {
  166.                   this.begin = this.position;
  167.                   this.__set__finish(finish);
  168.                   if(duration != undefined)
  169.                   {
  170.                      this.__set__duration(duration);
  171.                   }
  172.                   this.start();
  173.                };
  174.                _loc2_.yoyo = function()
  175.                {
  176.                   this.continueTo(this.begin,this.__get__time());
  177.                };
  178.                _loc2_.startEnterFrame = function()
  179.                {
  180.                   if(this._fps == undefined)
  181.                   {
  182.                      _global.MovieClip.addListener(this);
  183.                   }
  184.                   else
  185.                   {
  186.                      this._intervalID = setInterval(this,"onEnterFrame",1000 / this._fps);
  187.                   }
  188.                   this.isPlaying = true;
  189.                };
  190.                _loc2_.stopEnterFrame = function()
  191.                {
  192.                   if(this._fps == undefined)
  193.                   {
  194.                      _global.MovieClip.removeListener(this);
  195.                   }
  196.                   else
  197.                   {
  198.                      clearInterval(this._intervalID);
  199.                   }
  200.                   this.isPlaying = false;
  201.                };
  202.                _loc2_.start = function()
  203.                {
  204.                   this.rewind();
  205.                   this.startEnterFrame();
  206.                   this.broadcastMessage("onMotionStarted",this);
  207.                };
  208.                _loc2_.stop = function()
  209.                {
  210.                   this.stopEnterFrame();
  211.                   this.broadcastMessage("onMotionStopped",this);
  212.                };
  213.                _loc2_.resume = function()
  214.                {
  215.                   this.fixTime();
  216.                   this.startEnterFrame();
  217.                   this.broadcastMessage("onMotionResumed",this);
  218.                };
  219.                _loc2_.rewind = function(t)
  220.                {
  221.                   this._time = t != undefined ? t : 0;
  222.                   this.fixTime();
  223.                   this.update();
  224.                };
  225.                _loc2_.fforward = function()
  226.                {
  227.                   this.__set__time(this._duration);
  228.                   this.fixTime();
  229.                };
  230.                _loc2_.nextFrame = function()
  231.                {
  232.                   if(this.useSeconds)
  233.                   {
  234.                      this.__set__time((getTimer() - this._startTime) / 1000);
  235.                   }
  236.                   else
  237.                   {
  238.                      this.__set__time(this._time + 1);
  239.                   }
  240.                };
  241.                _loc2_.onEnterFrame = function()
  242.                {
  243.                   this.nextFrame();
  244.                };
  245.                _loc2_.prevFrame = function()
  246.                {
  247.                   if(!this.useSeconds)
  248.                   {
  249.                      this.__set__time(this._time - 1);
  250.                   }
  251.                };
  252.                _loc2_.toString = function()
  253.                {
  254.                   return "[Tween]";
  255.                };
  256.                _loc2_.fixTime = function()
  257.                {
  258.                   if(this.useSeconds)
  259.                   {
  260.                      this._startTime = getTimer() - this._time * 1000;
  261.                   }
  262.                };
  263.                _loc2_.update = function()
  264.                {
  265.                   this.__set__position(this.getPosition(this._time));
  266.                };
  267.                mx.transitions.Tween = function(obj, prop, func, begin, finish, duration, useSeconds)
  268.                {
  269.                   mx.transitions.OnEnterFrameBeacon.init();
  270.                   if(!arguments.length)
  271.                   {
  272.                      return undefined;
  273.                   }
  274.                   this.obj = obj;
  275.                   this.prop = prop;
  276.                   this.begin = begin;
  277.                   this.__set__position(begin);
  278.                   this.__set__duration(duration);
  279.                   this.useSeconds = useSeconds;
  280.                   if(func)
  281.                   {
  282.                      this.func = func;
  283.                   }
  284.                   this.__set__finish(finish);
  285.                   this._listeners = [];
  286.                   this.addListener(this);
  287.                   this.start();
  288.                }.version = "1.1.0.52";
  289.                mx.transitions.Tween = function(obj, prop, func, begin, finish, duration, useSeconds)
  290.                {
  291.                   mx.transitions.OnEnterFrameBeacon.init();
  292.                   if(!arguments.length)
  293.                   {
  294.                      return undefined;
  295.                   }
  296.                   this.obj = obj;
  297.                   this.prop = prop;
  298.                   this.begin = begin;
  299.                   this.__set__position(begin);
  300.                   this.__set__duration(duration);
  301.                   this.useSeconds = useSeconds;
  302.                   if(func)
  303.                   {
  304.                      this.func = func;
  305.                   }
  306.                   this.__set__finish(finish);
  307.                   this._listeners = [];
  308.                   this.addListener(this);
  309.                   this.start();
  310.                }.__initBeacon = mx.transitions.OnEnterFrameBeacon.init();
  311.                mx.transitions.Tween = function(obj, prop, func, begin, finish, duration, useSeconds)
  312.                {
  313.                   mx.transitions.OnEnterFrameBeacon.init();
  314.                   if(!arguments.length)
  315.                   {
  316.                      return undefined;
  317.                   }
  318.                   this.obj = obj;
  319.                   this.prop = prop;
  320.                   this.begin = begin;
  321.                   this.__set__position(begin);
  322.                   this.__set__duration(duration);
  323.                   this.useSeconds = useSeconds;
  324.                   if(func)
  325.                   {
  326.                      this.func = func;
  327.                   }
  328.                   this.__set__finish(finish);
  329.                   this._listeners = [];
  330.                   this.addListener(this);
  331.                   this.start();
  332.                }.__initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype,true);
  333.                _loc2_.func = function(t, b, c, d)
  334.                {
  335.                   return c * t / d + b;
  336.                };
  337.                ┬º┬ºpush(_loc2_.addProperty("FPS",_loc2_.__get__FPS,_loc2_.__set__FPS));
  338.                ┬º┬ºpush(_loc2_.addProperty("duration",_loc2_.__get__duration,_loc2_.__set__duration));
  339.                ┬º┬ºpush(_loc2_.addProperty("finish",_loc2_.__get__finish,_loc2_.__set__finish));
  340.                ┬º┬ºpush(_loc2_.addProperty("position",_loc2_.__get__position,_loc2_.__set__position));
  341.                ┬º┬ºpush(_loc2_.addProperty("time",_loc2_.__get__time,_loc2_.__set__time));
  342.                ┬º┬ºpush(ASSetPropFlags(mx.transitions.Tween.prototype,null,1));
  343.             }
  344.             ┬º┬ºpop();
  345.             break;
  346.          }
  347.          if(eval("\x01") == 884)
  348.          {
  349.             set("\x01",eval("\x01") - 491);
  350.             if(┬º┬ºpop())
  351.             {
  352.                set("\x01",eval("\x01") + 504);
  353.             }
  354.          }
  355.          else
  356.          {
  357.             if(eval("\x01") == 98)
  358.             {
  359.                set("\x01",eval("\x01") + 80);
  360.                stop();
  361.                with(┬º┬ºpop())
  362.                {
  363.                }
  364.                ┬º┬ºpop() extends ┬º┬ºpop();
  365.                ┬º┬ºpop() extends ┬º┬ºpop() | ┬º┬ºpop();
  366.                ┬º┬ºpush(┬º┬ºpop() >>> ┬º┬ºpop());
  367.                break;
  368.             }
  369.             if(eval("\x01") == 627)
  370.             {
  371.                set("\x01",eval("\x01") - 129);
  372.                if(┬º┬ºpop())
  373.                {
  374.                   set("\x01",eval("\x01") + 112);
  375.                }
  376.             }
  377.             else
  378.             {
  379.                if(eval("\x01") == 158)
  380.                {
  381.                   set("\x01",eval("\x01") + 157);
  382.                   stopAllSounds();
  383.                   break;
  384.                }
  385.                if(eval("\x01") == 178)
  386.                {
  387.                   set("\x01",eval("\x01") + 681);
  388.                   ┬º┬ºpush(true);
  389.                }
  390.                else if(eval("\x01") == 346)
  391.                {
  392.                   set("\x01",eval("\x01") - 188);
  393.                   if(┬º┬ºpop())
  394.                   {
  395.                      set("\x01",eval("\x01") + 157);
  396.                   }
  397.                }
  398.                else if(eval("\x01") == 196)
  399.                {
  400.                   set("\x01",eval("\x01") + 569);
  401.                   if(┬º┬ºpop())
  402.                   {
  403.                      set("\x01",eval("\x01") - 763);
  404.                   }
  405.                }
  406.                else if(eval("\x01") == 2)
  407.                {
  408.                   set("\x01",eval("\x01") + 625);
  409.                   ┬º┬ºpush(true);
  410.                }
  411.                else
  412.                {
  413.                   if(eval("\x01") == 428)
  414.                   {
  415.                      set("\x01",eval("\x01") - 221);
  416.                      break;
  417.                   }
  418.                   if(eval("\x01") == 983)
  419.                   {
  420.                      set("\x01",eval("\x01") - 766);
  421.                      break;
  422.                   }
  423.                   if(eval("\x01") == 897)
  424.                   {
  425.                      set("\x01",eval("\x01") - 701);
  426.                      ┬º┬ºpush(true);
  427.                   }
  428.                   else if(eval("\x01") == 859)
  429.                   {
  430.                      set("\x01",eval("\x01") - 431);
  431.                      if(┬º┬ºpop())
  432.                      {
  433.                         set("\x01",eval("\x01") - 221);
  434.                      }
  435.                   }
  436.                   else if(eval("\x01") == 537)
  437.                   {
  438.                      set("\x01",eval("\x01") - 79);
  439.                      if(┬º┬ºpop())
  440.                      {
  441.                         set("\x01",eval("\x01") - 307);
  442.                      }
  443.                   }
  444.                   else
  445.                   {
  446.                      if(eval("\x01") == 498)
  447.                      {
  448.                         set("\x01",eval("\x01") + 112);
  449.                         break;
  450.                      }
  451.                      if(eval("\x01") == 207)
  452.                      {
  453.                         set("\x01",eval("\x01") + 330);
  454.                         ┬º┬ºpush(true);
  455.                      }
  456.                      else if(eval("\x01") == 151)
  457.                      {
  458.                         set("\x01",eval("\x01") + 733);
  459.                         ┬º┬ºpush(true);
  460.                      }
  461.                      else if(eval("\x01") == 610)
  462.                      {
  463.                         set("\x01",eval("\x01") - 264);
  464.                         ┬º┬ºpush(true);
  465.                      }
  466.                      else
  467.                      {
  468.                         if(eval("\x01") == 393)
  469.                         {
  470.                            set("\x01",eval("\x01") + 504);
  471.                            break;
  472.                         }
  473.                         if(eval("\x01") == 315)
  474.                         {
  475.                            set("\x01",eval("\x01") - 271);
  476.                            ┬º┬ºpush(true);
  477.                         }
  478.                         else
  479.                         {
  480.                            if(eval("\x01") == 741)
  481.                            {
  482.                               set("\x01",eval("\x01") - 741);
  483.                               break;
  484.                            }
  485.                            if(eval("\x01") != 44)
  486.                            {
  487.                               break;
  488.                            }
  489.                            set("\x01",eval("\x01") + 939);
  490.                            if(┬º┬ºpop())
  491.                            {
  492.                               set("\x01",eval("\x01") - 766);
  493.                            }
  494.                         }
  495.                      }
  496.                   }
  497.                }
  498.             }
  499.          }
  500.       }
  501.    }
  502. }
  503.